package bhbt.controller.admin.sys;


import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import bhbt.controller.core.BaseController;
import bhbt.model.Qq;
import bhbt.service.QqService;






/**
 * Created by Administrator on 2016/3/25.
 */
@Controller
 
public class QqAddController extends BaseController {
    @Resource
    private QqService qqService;
   
   
    @RequestMapping("admin/sys/qqAdd.shtml")
    public String add(Qq qq,ModelMap model,HttpServletRequest request, HttpServletResponse response) {
    	//新增
    	qqService.saveOrUpdate(qq);
		return "redirect:qqList.shtml";
    }
  
}
